package com.xqboss.apps.mapper.guild;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xqboss.apps.domain.guild.GuildApplyRecord;
import com.xqboss.apps.vo.guild.GuildJoinApplyRecordVo;
import com.xqboss.apps.vo.guild.GuildMyApplyRecordVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


/**
 * 公会申请记录表——会员操作(GuildApplyRecord)表数据库访问层
 *
 * @author ljh
 * @since 2024-01-09 17:21:09
 */
@Repository
public interface GuildApplyRecordMapper extends BaseMapper<GuildApplyRecord> {

    /**
     * 获取当前用户的公会申请记录
     *
     * @param userId 申请公会的用户id
     * @return 我的申请
     */
    IPage<GuildMyApplyRecordVo> getMyApplyRecordVo(Page<GuildMyApplyRecordVo> page,@Param("applyUserId") Long userId);

    /**
     * 获取申请该公会的申请记录
     *
     * @param guildId 公会id
     * @return 加入申请
     */
    IPage<GuildJoinApplyRecordVo> getJoinApplyList(Page<GuildJoinApplyRecordVo> page, @Param("applyGuildId") Long guildId);
}

